home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / hldsze / example.frm (.txt) next >
Encoding:
Visual Basic Form  |  1998-11-02  |  1.2 KB  |  40 lines

  1. VERSION 5.00
  2. Object = "{4079BAAC-7282-11D2-A460-008029E79FA1}#1.0#0"; "HOLDSIZE.OCX"
  3. Begin VB.Form Example 
  4.    Caption         =   "HoldSize Example"
  5.    ClientHeight    =   2055
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   4680
  9.    Icon            =   "example.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   2055
  12.    ScaleWidth      =   4680
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin HoldSizeProject.HoldSize HoldSize1 
  15.       Left            =   3120
  16.       Top             =   720
  17.       _ExtentX        =   979
  18.       _ExtentY        =   979
  19.    End
  20.    Begin VB.CommandButton Command1 
  21.       Caption         =   "Toggle HoldSize"
  22.       Height          =   615
  23.       Left            =   360
  24.       TabIndex        =   0
  25.       Top             =   360
  26.       Width           =   1575
  27.    End
  28. Attribute VB_Name = "Example"
  29. Attribute VB_GlobalNameSpace = False
  30. Attribute VB_Creatable = False
  31. Attribute VB_PredeclaredId = True
  32. Attribute VB_Exposed = False
  33. Option Explicit
  34. Private Sub Command1_Click()
  35.     ' Toggle the current hold size activation.
  36.     HoldSize1.Toggle
  37.     ' Send a message box to show what the current state is.
  38.     MsgBox HoldSize1.IsActive
  39. End Sub
  40.